package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import cn.tedu.charging.common.pojo.param.ChargingProcessParam;
import cn.tedu.charging.common.pojo.vo.ChargingProcessVO;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Miyako
 * @Date: 2024-10-22-16:08
 * @Description:
 */
@FeignClient("costService")
public interface CostClient {
    @PostMapping("/cost/calculate")
    JsonResult<ChargingProcessVO> calculateCost(@RequestBody ChargingProcessParam chargingProcessParam);
}
